package com.skytech.component.crawler.scratch;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class IndexMapping {





        public static JSONObject  CRAWLER_NEWS = JSON.parseObject(
                "{\n" +
                "    \"news\": {\n" +
                "            \"properties\": {\n" +
                "                \"title\": {\n" +
                "                    \"type\": \"text\"\n" +
                "                  \n" +
                "                },\n" +
                "                \"content\": {\n" +
                "                    \"type\": \"text\"\n" +
                "                },\n" +
                "                  \"sourceUrl\":{\n" +
                "                    \"type\":\"text\"\n" +
                "                  },\n" +
                "              \"urlId\":{\n" +
                "                    \"type\":\"keyword\"\n" +
                "                  },\n" +
                "              \"ruleId\":{\n" +
                "                    \"type\":\"keyword\"\n" +
                "                  },\n" +
                "            \n" +
                "              \"timestamp\":{\n" +
                "                \"type\":\"keyword\"\n" +
                "              },\n" +
                "         \n" +
                "              \"catalog\":{\n" +
                "                \"type\":\"keyword\"\n" +
                "              },\n" +
                "            \n" +
                "            \"target\":{\n" +
                "                \"type\":\"keyword\"\n" +
                "                },\n" +
                " \t          \"data_item\":{\n" +
                "                \"type\":\"text\"\n" +
                "              }\n" +
                "            }\n" +
                "        }\n" +
                "  }");
    public static  JSONObject CRAWLER_STORAGE = JSON.parseObject("{\n" +
                "  \"storage\": {\n" +
                "    \"properties\": {\n" +
                "      \"title\": {\n" +
                "        \"type\": \"text\",\n" +
                "        \"analyzer\": \"ik_max_word\",\n" +
                "        \"search_analyzer\": \"ik_max_word\"\n" +
                "      },\n" +
                "      \"content\": {\n" +
                "        \"type\": \"text\",\n" +
                "        \"analyzer\": \"ik_max_word\",\n" +
                "        \"search_analyzer\": \"ik_max_word\"\n" +
                "      },\n" +
                "      \"sourceUrl\":{\n" +
                "        \"type\":\"text\"\n" +
                "      },\n" +
                "      \"timestamp\":{\n" +
                "        \"type\":\"keyword\"\n" +
                "      },\n" +
                "      \"newsType\":{\n" +
                "        \"type\":\"keyword\"\n" +
                "      },\n" +
                "      \"catalog\":{\n" +
                "        \"type\":\"keyword\"\n" +
                "      },\n" +
                "      \"year\":{\n" +
                "        \"type\":\"keyword\"\n" +
                "      },\n" +
                "      \"sourceId\":{\n" +
                "        \"type\":\"keyword\"\n" +
                "      }\n" +
                "    }\n" +
                "\n" +
                "  }\n" +
                "}");

}
